@echo off
:1
echo generating...
gen.exe 30 > gift.in
echo running...
gift.exe
gift_cool_floyd.exe < gift.in > gift2.out
fc gift.out gift2.out
if errorlevel 1 goto 2
goto 1
:2